package com.example.httpdemo.retrofit.service

import com.example.httpdemo.entity.BookSearch
import com.example.httpdemo.entity.RecommendBook
import com.example.httpdemo.entity.ResponseData
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface LibraryService {
    @GET("getrecommendbook")
    fun getRecommendBook() : Call<ResponseData<RecommendBook>>

    @GET("searchbook/{query}")
    fun getSearchList(@Path("query") query: String) : Call<ResponseData<BookSearch>>
}